﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddNewAuthor.ascx.cs"
    Inherits="NLLSite.Administrator.UserControl.AddNewAuthor" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<script runat="server" language="C#">

    // We are not using a code behind page here just for simplicity in the
    // sample file. In this way we don't have to distribute a compiled DLL for
    // this page. In real cases, the following code will instead be defined in
    // a code behind file.

    protected override void OnLoad(EventArgs e)
    {
        CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
        _FileBrowser.BasePath = "../../ckfinder/";
        _FileBrowser.SetupCKEditor(CKEditor1);
    }

</script>
<div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Thêm mới tác giả</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
                <asp:Panel ID="Panel1" runat="server">
                    <table>
                        <tr>
                            <td valign="top" width="130">
                                Tên tác giả:
                            </td>
                            <td width="610">
                                <asp:TextBox ID="txtAuthor" runat="server" Width="250px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtAuthor" Font-Bold="True"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" width="130">
                                Thông tin:
                            </td>
                            <td width="610">
                                <CKEditor:CKEditorControl ID="CKEditor1" runat="server" BasePath="../../../ckeditor/"
                                    Width="600px"></CKEditor:CKEditorControl>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" width="130">
                                &nbsp;
                            </td>
                            <td width="610">
                                <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" width="130">
                                &nbsp;
                            </td>
                            <td width="610">
                                <asp:Button ID="btnThem" runat="server" OnClick="btnThem_Click" Text="Thêm mới" 
                                    CssClass="altbutton" />
                                <a href="Quanlytacgia.aspx"><input type="button" value="Quay về trang quản lý" class="altbutton" /></a> 
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </div>
</div>
